﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true"
    CodeBehind="ContactDetail.aspx.cs" Inherits="MockPrjTeam1.Pages.Forms.ContactDetail" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script>
        function chuyentrang() {
            window.location = "../Views/ViewSearchContact.aspx";
        }
       

    </script>
    <style type="text/css">
        .style1
        {
            width: 150px;
            height: 50px;
        }
        .style2
        {
            width: 350px;
            height: 50px;
        }
        
        .style3
        {
            width: 100px;
            height: 50px;
            padding-left: 20px;
        }
        .style4
        {
            width: 100px;
        }
        
        .style5
        {
            width: 300px;
            height: 50px;
        }
        #ContactName
        {
            width: 248px;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div id="templatemo_main">
        <div>
            <asp:Label ID="Label1" Text="Create New Contact" Font-Size="Large" ForeColor="Green"
                runat="server"></asp:Label>
            <table width="970px" style="font-size: 14px; font-family: Arial">
                <tr>
                    <td class="style3">
                        FirstName
                        <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="*"></asp:Label>
                        &nbsp;&nbsp;
                    </td>
                    <td class="style5">
                        <br />
                        <asp:TextBox ID="txtFirstName" runat="server" TabIndex="1" CssClass="textbox"></asp:TextBox>
                        <br />
                        <asp:RequiredFieldValidator ID="reqFirstName" runat="server" ControlToValidate="txtFirstName"
                            ErrorMessage="Please enter FirstName" ForeColor="Red" BackColor="Transparent"></asp:RequiredFieldValidator>
                    </td>
                    <td class="style1">
                        Manager Name
                    </td>
                    <td class="style5">
                        <asp:TextBox ID="txtManagerName1" runat="server" ReadOnly="true" TabIndex="8" CssClass="textbox"></asp:TextBox>
                         <asp:HiddenField ID="hdfContact" runat="server"/>
                        <a href='#' onclick="javascript:window.open('/Pages/Views/LookupContact.aspx?Look=1&id1=<%=txtManagerName1.ClientID %>&id2=<%=hdfContact.ClientID %>')"
                            style="color: Blue">Lookup</a>
                        
                  <%--     <input type="text" id="ContactName" />--%>
                        <%--<a href="../Views/ViewSearchContact.aspx" style="color: Blue;">Lookup</a> --%>
                       <%-- <a href='#' onclick="javascript:window.open('/Pages/Views/ContactLookup.aspx')" style="color:Blue">Lookup</a>--%>
                        
                        <br />
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        SurName&nbsp;
                        <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*"></asp:Label>
                    </td>
                    <td class="style5">
                        <br />
                        <asp:TextBox ID="txtSurName" runat="server" TabIndex="2" CssClass="textbox"></asp:TextBox>
                        <br />
                        <asp:RequiredFieldValidator ID="ReqSurName" runat="server" ControlToValidate="txtSurName"
                            BorderColor="Red" ErrorMessage="Please enter SurName" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                    <td class="style1">
                        Contact Type
                        <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*"></asp:Label>
                    </td>
                    <td class="style2">
                        <br />
                        <asp:DropDownList ID="DrDContactType" runat="server" Height="20px" CssClass="textbox2"
                            TabIndex="10">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem Value="Regular"> Regular </asp:ListItem>
                            <asp:ListItem Value="SomeTimes"> SomeTimes </asp:ListItem>
                        </asp:DropDownList>
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DrDContactType"
                            ErrorMessage="Please choose Contact Type" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        Known as
                    </td>
                    <td class="style5">
                        <asp:TextBox ID="txtKnownAs" runat="server" TabIndex="3" CssClass="textbox"></asp:TextBox>
                    </td>
                    <td class="style1">
                        Best Contact Method
                    </td>
                    <td class="style2">
                        <asp:DropDownList ID="DrDBestContactMethod" runat="server" Height="20px" CssClass="textbox2"
                            TabIndex="11">
                            <asp:ListItem></asp:ListItem>
                            <asp:ListItem Value="Post Office"> Post Office </asp:ListItem>
                            <asp:ListItem Value="Phone"> Phone </asp:ListItem>
                            <asp:ListItem Value="Email"> Email </asp:ListItem>
                            <asp:ListItem Value="Skype"> Skype </asp:ListItem>
                            <asp:ListItem Value="Facebook"> Facebook </asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        Office Phone
                    </td>
                    <td class="style5">
                        <asp:TextBox ID="txtOfficePhone" runat="server" TabIndex="4" CssClass="textbox"></asp:TextBox>
                    </td>
                    <td class="style1">
                        Job Role
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="txtJobRole" runat="server" TabIndex="12" CssClass="textbox"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        Mobile Phone
                    </td>
                    <td class="style5">
                        <asp:TextBox ID="txtMobilePhone" runat="server" TabIndex="5" CssClass="textbox"></asp:TextBox>
                    </td>
                    <td class="style1">
                        Work base
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="txtWorkBase" runat="server" TabIndex="13" CssClass="textbox"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        ST Home Phone
                    </td>
                    <td class="style5">
                        <asp:TextBox ID="txtHomePhone" runat="server" Style="margin-bottom: 0px" TabIndex="6"
                            CssClass="textbox"></asp:TextBox>
                    </td>
                    <td class="style1">
                        Job Title
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="txtJobTitle" runat="server" TabIndex="14" CssClass="textbox"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        Email Address
                    </td>
                    <td class="style5">
                        <asp:TextBox ID="txtEmailAddress" runat="server" TabIndex="7" CssClass="textbox"></asp:TextBox>
                    </td>
                    <td class="style1">
                        Is Active?
                    </td>
                    <td class="style2">
                        <asp:CheckBox ID="CkbIsActive" runat="server" TabIndex="15" Checked="false"/>
                    </td>
                </tr>
                <tr>
                    <td class="style4">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        <center>
                            &nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnSave" runat="server" Text="Save" Width="65px" Height="25px" OnClick="btnSave_Click"
                                TabIndex="16" /></center>
                    </td>
                    <td>
                        <%-- <asp:Button ID="btnBack" runat="server" 
                         onclick="btnBack_Click" Text="Back" 
                         Width="65px"  Height="25px" TabIndex="17" />--%>
                        <input type="button" value="Back" onclick="chuyentrang()" style="width: 65px; height: 25px;" />
                    </td>
                </tr>
            </table>
        </div>
        <p>
        </p>
    </div>
</asp:Content>
